function findKthLargest(nums, k) {
    nums.sort((last, current) => current - last);
    return nums[k - 1];
}


module.exports = findKthLargest;